// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.modal-header {
  border-radius: 5px 5px 0 0;
  border-bottom: 0;

  // Elements
  &__badges {
    display: flex;
    position: absolute;
    top: -20px;
    left: 10px;
  }

  &__dimmer {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px 5px 0 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  &__title {
    .default-text-shadow();
    font-style: normal;
    font-size: 24px;
    color: #fff;

    position: absolute;
    margin: 10px;
    bottom: 0;
    left: 0;
  }

  &__userinfo {
    padding-right: 10px;
  }

  // Modifiers
  &--login {
    .at2x-simple("~@images/headers/login-box.jpg");
    height: 60px;
    background-size: cover;
    background-position: 100%;
  }

  &--authenticated {
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    display: flex;
    height: 70px;
    justify-content: space-between;
    padding: 5px 10px;
  }
}
